from .models import Hostel,Room,Reservation
from rest_framework import serializers

class RoomSerializer(serializers.HyperlinkedModelSerializer):
    hostel = serializers.CharField(source='hostel.name')
    class Meta:
        model = Room
        fields = ('id', 'hostel','name','price','image')

